package triangle.freshmanemail;

import java.util.ArrayList;

public class FreshmanEmailExtractor {

	public static void main(String [] args)
	{
		if (args.length != 1)
		{
			System.out.println("This is a friendly program written by Jason Cho (jhdcho@gmail.com) your friendly alumni advisor");
			System.out.println("It appears someone didn't explain how to run this code.");
			System.out.println("To run...");
			System.out.println("java -jar FreshmanEmailExtractor.jar <csv file of list of freshman names>");
			System.exit(1);
		}
		ArrayList<EmailStoreStructure> ess = EmailCSVReader.getEmailStructures(args[0]);
		EmailAddressSearcher.populateUrls(ess);
		EmailCSVSaver.saveFile(args[0], ess);
	}
}
